import Vue from "vue";
import VueRouter from "vue-router";
import Home from "@/pages/Home/index.vue";
import Search from "@/pages/Search/index.vue";
import Login from "@/pages/Login/index.vue";
import Register from "@/pages/Register/index.vue";
import NoFound from "@/pages/NoFound/index.vue";
Vue.use(VueRouter);
const router = new VueRouter({
	routes:[
		{
			path:"/",
			component:Home,
			meta:{
				// 使用导航
				isTypeNav:true
			}
		},{
			path:"/search",
			component:Search,
			meta:{
				// 使用导航
				isTypeNav:true
			}
		},{
			path:"/login",
			component:Login,
			meta:{
				isHideFooter:true
			}
		},{
			path:"/register",
			component:Register,
			meta:{
				isHideFooter:true
			}
		},{
			path:"*",
			component:NoFound
		}

	],
	mode:"history"
});
export default router;